/**
 * Created with CLion.
 * Description: 
 * User: loong
 * Date: 2020-01-02
 * Time: 19:41
 */
#ifndef PLANTROBOT_PLANTSDAO_H
#define PLANTROBOT_PLANTSDAO_H

#include <QtSql>
#include <QtCore>
#include "../model/Plants.h"
#include "../utils/DBHelper.h"

class PlantsDao {
private:
    Plants plants;
    QSqlTableModel *model;
public:
    bool check(QString plantsName);
    QString getAll(QString plantsName);
    QString getQrPath(QString plantsName);
};


#endif //PLANTROBOT_PLANTSDAO_H
